package com.adams.access.db.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * File Name : DicDatabase.java
 * 
 * @Description : 数据库定义实体
 */
@Entity
@Table(name = "T_DATABASE_INFO")
public class DicDatabase implements Serializable
{
	private static final long serialVersionUID = -6726163302932041934L;

	private String databasecode;// 数据库编码

	private String databasename;// 数据库名称

	private String databasetype;// 数据库类型

	private String beanname;// 对应的sessionFactory beanName

	@Id
	@GeneratedValue(generator = "assigned")
	@GenericGenerator(name = "assigned", strategy = "assigned")
	@Column(name = "DATABASECODE", length = 50)
	public String getDatabasecode()
	{
		return databasecode;
	}

	public void setDatabasecode(String databasecode)
	{
		this.databasecode = databasecode;
	}

	@Column(name = "DATABASENAME", length = 50)
	public String getDatabasename()
	{
		return databasename;
	}

	public void setDatabasename(String databasename)
	{
		this.databasename = databasename;
	}

	@Column(name = "DATABASETYPE", length = 10)
	public String getDatabasetype()
	{
		return databasetype;
	}

	public void setDatabasetype(String databasetype)
	{
		this.databasetype = databasetype;
	}

	@Column(name = "BEANNAME", length = 50)
	public String getBeanname()
	{
		return beanname;
	}

	public void setBeanname(String beanname)
	{
		this.beanname = beanname;
	}

}
